// Licensed to Elasticsearch B.V under one or more agreements.
// Elasticsearch B.V licenses this file to you under the Apache 2.0 License.
// See the LICENSE file in the project root for more information.
//
// ███╗   ██╗ ██████╗ ████████╗██╗ ██████╗███████╗
// ████╗  ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝
// ██╔██╗ ██║██║   ██║   ██║   ██║██║     █████╗
// ██║╚██╗██║██║   ██║   ██║   ██║██║     ██╔══╝
// ██║ ╚████║╚██████╔╝   ██║   ██║╚██████╗███████╗
// ╚═╝  ╚═══╝ ╚═════╝    ╚═╝   ╚═╝ ╚═════╝╚══════╝
// ------------------------------------------------
//
// This file is automatically generated.
// Please do not edit these files manually.
//
// ------------------------------------------------

#nullable restore

using System;
using System.Linq;
using Elastic.Clients.Elasticsearch.Serialization;

namespace Elastic.Clients.Elasticsearch.Cluster;

[System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Cluster.Json.AllocationExplainResponseConverter))]
public sealed partial class AllocationExplainResponse : Elastic.Transport.Products.Elasticsearch.ElasticsearchResponse
{
	[System.Diagnostics.CodeAnalysis.SetsRequiredMembers]
	public AllocationExplainResponse()
	{
	}

	[System.Diagnostics.CodeAnalysis.SetsRequiredMembers]
	internal AllocationExplainResponse(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel)
	{
		_ = sentinel;
	}

	public string? AllocateExplanation { get; set; }
	public Elastic.Clients.Elasticsearch.Duration? AllocationDelay { get; set; }
	public System.TimeSpan? AllocationDelayInMillis { get; set; }
	public Elastic.Clients.Elasticsearch.Cluster.Decision? CanAllocate { get; set; }
	public Elastic.Clients.Elasticsearch.Cluster.Decision? CanMoveToOtherNode { get; set; }
	public Elastic.Clients.Elasticsearch.Cluster.Decision? CanRebalanceCluster { get; set; }
	public System.Collections.Generic.IReadOnlyCollection<Elastic.Clients.Elasticsearch.Cluster.AllocationDecision>? CanRebalanceClusterDecisions { get; set; }
	public Elastic.Clients.Elasticsearch.Cluster.Decision? CanRebalanceToOtherNode { get; set; }
	public System.Collections.Generic.IReadOnlyCollection<Elastic.Clients.Elasticsearch.Cluster.AllocationDecision>? CanRemainDecisions { get; set; }
	public Elastic.Clients.Elasticsearch.Cluster.Decision? CanRemainOnCurrentNode { get; set; }
	public Elastic.Clients.Elasticsearch.Cluster.ClusterInfo? ClusterInfo { get; set; }
	public Elastic.Clients.Elasticsearch.Duration? ConfiguredDelay { get; set; }
	public System.TimeSpan? ConfiguredDelayInMillis { get; set; }
	public Elastic.Clients.Elasticsearch.Cluster.CurrentNode? CurrentNode { get; set; }
	public
#if NET7_0_OR_GREATER
required
#endif
string CurrentState { get; set; }
	public
#if NET7_0_OR_GREATER
required
#endif
string Index { get; set; }
	public string? MoveExplanation { get; set; }
	public System.Collections.Generic.IReadOnlyCollection<Elastic.Clients.Elasticsearch.Cluster.NodeAllocationExplanation>? NodeAllocationDecisions { get; set; }
	public string? Note { get; set; }
	public
#if NET7_0_OR_GREATER
required
#endif
bool Primary { get; set; }
	public string? RebalanceExplanation { get; set; }
	public Elastic.Clients.Elasticsearch.Duration? RemainingDelay { get; set; }
	public System.TimeSpan? RemainingDelayInMillis { get; set; }
	public
#if NET7_0_OR_GREATER
required
#endif
int Shard { get; set; }
	public Elastic.Clients.Elasticsearch.Cluster.UnassignedInformation? UnassignedInfo { get; set; }
}